package com.ms.p2p.provider;


import com.ms.p2p.bean.PageBean;
import com.ms.p2p.entity.loan.Loan;
import com.ms.p2p.entity.loan.LoanDueIn;
import com.ms.p2p.entity.loan.LoanStay;

import java.util.List;
import java.util.Map;


public interface LoanStayProvider {


	public List<LoanDueIn> repay(String ip, Loan loan, LoanStay loanStay);

	/**
	 * loan_id
	 *
	 * @param loan_id
	 * @return
	 */
	public LoanStay findNext(int loan_id);

	public int insert(LoanStay repay);

	public int update(LoanStay repay) ;

	public List<Map<String,Object>> findPager(String userId, String userName, String borrowId, String status, String borrowName, String begin_date, String end_date, PageBean page) ;

	public int findCount(String userId, String userName, String borrowId, String status, String borrowName, String begin_date, String end_date);

	List<LoanStay> findList(Integer id);


}
